#ifndef PLAYER_HPP
#define PLAYER_HPP

#include "Common.hpp"
#include "Object.hpp"
#include "UserInterface.hpp"
#include "Equipment.hpp"

class Player : public Object
{
public:
  Player(Object * parent = 0,
         const glm::mat4 & modelMatrix = glm::mat4(1.0f));
  //virtual ~Player();
  
  //virtual void draw(glm::mat4 modelMatrix); 
  
  virtual void update();
  
  vec3 m_pos;
  float m_rot;
  
  bool m_segway;

  bool m_equipped;
  
  int m_swing;
    float m_speed;

  Equipment * m_equipment;
  
  glm::mat4 header();
    
private:


  bool m_grounded;
  
  Object * m_head;
  Object * m_body;
  Object * m_leftArm;
  Object * m_rightArm;
  Object * m_leftLeg;
  Object * m_rightLeg;
  
  float m_armRot;
  float m_weaponRot;
  float m_legRot;
  float m_headRotRight;
  float m_headRotDown;
  int m_rightLegFirst;
  bool m_moving;
  bool m_army;

};

#endif // PLAYER_HPP
